#ifndef H_S_RPC_RET_H
#define H_S_RPC_RET_H

#include "../typedefine.h"
#include "EProtocolErrorCode.h"

namespace QWER
{
	QDLL_EXPORT QSTRUCT SRpcRet
	{
	public:
		SRpcRet(){}
		SRpcRet(EProtocolErrorCode eErrorCode)
		{
			m_eErrorCode = eErrorCode;
		}
		SRpcRet(EProtocolErrorCode eErrorCode, QMOVEABLE(std::vector<UINT8>) poRet)
		{
			m_eErrorCode = eErrorCode;
			m_poRet = QMOVE(poRet);
		}
		SRpcRet(QMOVEABLE(std::vector<UINT8>) poRet)
		{
			m_eErrorCode = EProtocolErrorCode::Success;
			m_poRet = QMOVE(poRet);
		}
	public:
		EProtocolErrorCode m_eErrorCode = EProtocolErrorCode::Success;
		CUniquePtr(std::vector<UINT8>) m_poRet;
	};
}

#endif
